//
//  FQOtherQuestionCollectionReusableView.swift
//  SwiftProject
//
//  Created by 董駸 on 2022/9/5.
//

import UIKit

class FQOtherQuestionCollectionReusableView: UICollectionReusableView {
    let titleLb = QMUILabel(font: .mSFont(16), textColor: .color51)
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    
        let whiteV = UIView()
        whiteV.clipsToBounds = true
        whiteV.backgroundColor = .white
        whiteV.layer.cornerRadius = 8
        whiteV.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
        addSubview(whiteV)
        
        whiteV.snp.makeConstraints { make in
            make.left.equalTo(16)
            make.right.equalTo(-16)
            make.top.bottom.equalToSuperview()
        }
        
        titleLb.text = "您是否还想问以下问题"
        whiteV.addSubview(titleLb)
        
        titleLb.snp.makeConstraints { make in
            make.centerY.equalToSuperview()
            make.left.equalTo(20)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
